<?php

/**
 * @author edson
 * @copyright 2011
 */

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDAdministracion";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/view/CDrawMenu.php");
include_once("$ruta/view/CDrawPage.php");
include_once("$ruta/view/CDrawAdmin.php"); 
$items=array("User"=>"Añadir");

CDrawMenu::getinstance()->setMenuDisplay($items);

CDrawMenu::getInstance()->rigth_side_begin();//empieza lado derecho 


$instance=new CDrawAdmin();
$columnas=array("idTra"=>"idtra","UseTra"=>"usetra","FirstNamTra"=>"firstnamtra","LastNamTra"=>"lastnamtra","MailTra"=>"mailtra");
$instance->DrawTable("Usuarios","trabajadores",$columnas);


//$instance->DrawDivAdBegin("content_area_user_title","1");
//echo "<h2>ADMINISTRACION</h2>";
//$instance->DrawDivAdEnd();



/*$instance->DrawDivAdBegin("contentWrapper");
$instance->DrawDivBegin("add_user_showhide");//
$instance->DrawDivBegin("add-box","1");///
$perfil=array("idPer","valPer","nomPer");
$instance->DrawSelect("perfiles",$perfil,"PERFILES");
$instance->DrawFormBegin("#","formPerfiles","post");
$items=array("HOTELES"=>array("A","V"),"GUIAS"=>array("A","V"));
$instance->DrawP($items);
$itembox=array("Nuevo perfil"=>"nuevo");
$instance->DrawTextBox($itembox);
$instance->DrawSubmmit("guardar");
$instance->DrawFormEnd();
$instance->DrawDivEnd();///
$instance->DrawDivEnd();//
*/

/************añadir modificar eliminar visualizar*********************************/
/***********************************************************************************/

/*$instance->DrawDivBegin("add_user_showhide2");//
$instance->DrawDivBegin("add-box","1");///
$instance->DrawFormBegin("#","formUser","post");
$items2=array("idTra","FirstNamTra","LastNamTra");
$instance->DrawSelect("trabajadores",$items2,"USUARIO");
$instance->DrawSubmmit("establecer");

//$items2=array("idTra","FirstNamTra","LastNamTra");
//$instance->DrawSelect("trabajadores",$items2,"PERFIL");

$instance->DrawFormEnd();
$instance->DrawDivEnd();///
$instance->DrawDivEnd();//*/

/***********************************************************************************/
/***********************************************************************************/
//$instance->DrawDivAdEnd();
$instance->DrawDivAdEnd();

CDrawMenu::getInstance()->rigth_side_end();///final de lado derecho 

$instance->DrawDivAdBegin("clearfloat");
$instance->DrawDivAdEnd();

include_once("$ruta/elements/foot.tpl");


?>